Distribution of modular router configuration

ABSTRACT

A router can be configured using configuration modules and configuration rules passed between neighboring routers using an extension of the OSPF protocol or other protocol. The rules can be integrated into the configuration modules or separated therefrom. The rules can be interpreted to determine whether the configuration module is loaded within the router. For example, an identifier of the configuration module can be used to uniquely identify the module and compare it to already loaded modules.

BACKGROUND

Traffic on the Internet has grown dramatically over the last decade and continues to grow. Routers play a critical role in sustaining that growth. Data to be passed by routers is generally divided into a series of packets that can be transmitted between devices. Packets include control information and payload data. The control information corresponds to information used by a communication network to deliver the payload data. For example, control information can include source and destination network addresses, error detection codes, packet sequencing identification, and the like. Typically, control information is found in packet headers and trailers included within the packet and adjacent to the payload data.

Generally, routers can operate with two primary functions or planes. The first function corresponds to a control plane, in which the router learns the set of outgoing interfaces that are most appropriate for forwarding received packets to specific destinations. The second function is a forwarding plane, in which the router sends the received packet to an outbound interface.

To execute the forwarding plane functionality, routers can maintain a forwarding information base (“FIB”) that identifies, among other packet attribute information, destination information for at least a subset of possible network addresses, such as Internet Protocol (“IP”) addresses. In a typical embodiment, the FIB corresponds to a table of values specifying network forwarding information for the router. To execute control plane functionality, routers can maintain a routing information base (“RIB”) that identifies routes through the network. The RIB can also contain metrics associated with those routes. As the router receives route updates, the router can update the RIB with announced or withdrawn routes. Generally, where the RIB identifies available routes, the FIB identifies an output interface corresponding to a selected route and the FIB is typically generated from information in the RIB.

Different protocols can be used to update the FIB and RIB. For example, an Open Shortest Path First (OSPF) routing protocol can be used, as well as other routing protocols. Generally, communications between the routers is limited to topology-based descriptions that describe the router landscape in a nearby area.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 shows a router network with multiple routers divided into different areas, with configuration modules and rule sets being passed between the routers.

FIG. 2 shows an embodiment of a router architecture with configuration modules and rules for configuring the router.

FIG. 3 shows addition details of the configuration modules.

FIG. 4 shows an example of a plurality of routers in a data center, wherein the routers pass configuration modules and rules there between.

FIG. 5 is an embodiment of a routing device with a division between software and hardware illustrated.

FIG. 6 is a flowchart of a method for configuring a router.

FIG. 7 is a flowchart of a method according to another embodiment for configuring a router.

FIG. 8 is a flowchart of a method according to yet another embodiment for configuring a router.

FIG. 9 depicts a generalized example of a suitable computing environment in which the described innovations may be implemented.

DETAILED DESCRIPTION

The embodiments described herein relate to distributing configuration chunks or modules that can be processed on a router to generate a useable configuration for the router. The process used helps ensure reliable distribution of the modules and consistency within the network. After a router first boots with a default image, it attempts to form a neighborship with any neighbors on ports. After a neighborship is fully formed, the routers exchange their Module Databases (MDBs) to ensure they are both up to date. Once a router has a complete database, it parses the database to generate a configuration. If there is a difference in the configuration, the new configuration is applied and saved to storage. The MDB can be saved at an interval, such as every X updates (where X is any integer value) or every Y minutes (where Y is any value), to maintain the MDB across reboots.

The types of modules in the MDB vary depending on how far they are propagated into the network. For example, a type 0 module can be limited to the device containing it. A type 1 module can be limited to the devices in the area in which it is flagged. A type 2 module can be propagated throughout the Modular Router Configuration (MRC) domain. Other types can be defined. A network can be comprised of multiple MRC domains delineated by domain numbers. An MRC domain may have multiple areas. The modules can be redistributed between areas and MRC domains. Each module within a network can consist of a unique Module ID (MID) to prevent any looping. To prevent stale modules, each module can also have a revision number to track if this is the latest version of the module.

In particular embodiments, each area within an MRC has a Seed Device (SD) and Alternate Seed Device (ASD), similar to OSPF's Designated Router (DR) and Backup Designated Router (BDR). These devices can be responsible for maintaining consistency of the area MDB and originating updates to the area. Area Boundary Devices (ABDs) can be used to redistribute modules between areas, between MRCs, or both. For example, a first area could send a module to a second area that provides configuration parameters for BGP sessions and another module for appropriate communities to use to tag traffic.

When a first device in a network loads and has no neighbors to synchronize with yet, the device can fall back to retrieving the modules from a preconfigured host. Alternatively, the device can be loaded via an external source that detects a new device coming online. Still another alternative is to allow the device to wait until it is connected to a network of MRC domains and load a MDB.

Several embodiments described herein use the Open Shortest Path First (OSPF) routing protocol as an example, but other routing protocols can be used. For example, any interior gateway protocols (IGP) or exterior gateway protocols can be used (e.g., the Border Gateway Protocol (BGP)).

A router as described herein includes hardware and software that communicatively interconnects other equipment on the network (e.g., other network elements, end stations). Some routers provide support for multiple networking functions (e.g., routing, bridging, switching, Layer 2 aggregation, session border control, etc.), and/or provide support for multiple application services (e.g., data, voice, and video). Routers typically include a control plane and a data plane (sometimes referred to as a forwarding plane). The control plane determines how data (e.g., packets) are routed (e.g., the next hop for the data and the outgoing port for that data), and the data plane forwards the data. The control plane can include one or more routing protocols (e.g., Border Gateway Protocol (BGP), Interior Gateway Protocol(s) (IGP) (e.g., Open Shortest Path First (OSPF), Routing Information Protocol (RIP), Intermediate System to Intermediate System (IS-IS)), Label Distribution Protocol (LDP), Resource Reservation Protocol (RSVP)) that communicate with other routers to exchange routes and select those routes based on one or more routing metrics.

Routers implementing OSPF run a link state routing protocol that maintains an identical link state database (LSDB) describing the topology of the autonomous system (AS) in which it resides. Each record in the LSDB is a particular network element's usable interfaces and reachable neighbors, adjacencies, or routes external to an area or AS. Neighboring routers (or “neighbors”) are two routers that have interfaces to a common network, wherein an interface is a connection between a router and one of its attached networks. Moreover, an adjacency is a relationship formed between selected neighboring routers for the purpose of exchanging routing information and abstracting the network topology. One or more router adjacencies can be established over an interface. The adjacencies are established and maintained in OSPF through the use of a “Hello” protocol. The Hello protocol ensures that communication between neighbors is bi-directional by periodically sending Hello packets out of all of the network element interfaces. Bi-directional communication is indicated when the router sees itself listed in the neighbor's Hello packet.

FIG. 1 shows a network of components 100 divided into multiple areas 110, 112. The multiple areas represent any number of N areas (where N is any integer number). Each area 110, 112 can include multiple routers, such as router 120, and multiple host server computers, such as is shown at 130. The lines between the routers represents that a full OSPF adjacency has been established. Each area 110, 112 can include groups of contiguous networks and hosts. Some routers, such as router 140, can be an area border router that connects one or more areas together. As shown at 150, through the network protocol, a router can send network topology information to an adjacent router. As shown at 160, the routers can also exchange configuration modules and rule sets. The configuration modules are part of the module databases. The routers can use the rule sets to determine whether the configuration module should be executed (i.e., loaded or used in the router). In one example, a rule can indicate that a configuration module should be executed if an adjacent router has a particular identifier. Other rules can check for flags (e.g., maintenance mode) and perform configuration based on the flag, on any parameters, characteristics or environmental parameters. Multiple configuration modules can be received from an adjacent router and the router 120 interprets the rules associated with the modules and can analyze the router environment, characteristics or state to determine whether to apply the configuration module. The router environment can be based on parameters associated with adjacent routers whereas the state can be related to the router at issue. Still further, the router characteristics can be based on the type of hardware or software used by the router.

FIG. 2 shows further details of a router architecture. A router 200 includes a controller, such as a controller card 210, a router backplane 220 and one or more interfaces, such as interface cards 230. A CPU 240 is positioned on the controller card 210 and typically performs functions such as router table maintenance, path computations, and reachability propagation. The interface cards 230 include adapters for performing inbound and outbound packet forwarding. The router backplane 220 is responsible for transferring packets between the controller card and the interface cards. The basic functionality of the router 200 can include route processing and packet forwarding. A routing table 250 allows the router to create a view of the network's topology, which describes router relationships in a network, etc. For example, the router 200 is coupled to a network of other routers, such as is shown at 260, 262 (many other routers are generally included but not shown for simplicity).

Packet forwarding generally includes IP packet validation wherein the router checks that the packet is properly formed before processing the packet. The router can then perform a table lookup to determine an output port onto which to direct the packet, and a next destination to which to send the packet. The router can also adjust a time-to-live parameter to prevent circulation of packets that are too old. Finally, the router can perform an IP header checksum.

Router table lookup in the router table 250 is typically performed by the CPI 240 using the packet's IP destination address as a key. The lookup returns the best-matching routing table entry, which provides the interface and the IP address of the packet's next hop. The next hop address can be cached in a front-end routing table (not shown), which can be organized as a hash table.

The controller card 210 can also include storage (e.g., memory, hard drive, etc.) for a router configuration 270. The router configuration is independent of the routing table 250 and does not identify best routes to take through a router network. Thus, the router configuration modules are independent of the routing topology information. Instead, the router configuration can relate to interface settings or other characteristics or properties of the router (also called environmental parameters). Example configuration settings include speed (e.g., 10 megabits per second, 100 megabits per second, Auto mode, etc.), maximum transmission units (MTU)(maximum packet size), transmission modes (e.g., full duplex, half duplex, etc.), encapsulation types, interface types, load interval (the length of time used to calculate the average load on an interface), redirect message settings (if forced to resend a packet), setting up neighbors, adjacency, configuration of routing protocols, etc.

The router configuration 270 is set by executing or using configuration modules 280. The configuration modules can be executable and each module can set configuration for a subpart of the overall router configuration settings 270. For example, one configuration module can be used to set a transmission mode, while another configuration module can set packet size, etc. The configuration modules can include an identifier (e.g., GUID) and a revision number to uniquely identify the configuration module. Configuration rules 290 can be used in conjunction with the configuration modules. Although shown separately, the configuration rules 280 can be embedded in or integrated into the configuration modules 280. For example, each configuration module can have a rule set embedded therein. The CPU can interpret the configuration rules 290 to determine whether to load the configuration modules 280 into the ultimate router configuration 270. For example, the configuration rules can require the CPU 240 to analyze current router settings or other characteristics of the router to determine whether to execute the configuration module. If the rules are satisfied, the CPU can execute and load the configuration settings into the router configuration 270. Otherwise if the rules are not satisfied, the CPU can skip the configuration module so that it is not loaded. Although a CPU is shown, as further described below, any of a variety of processors or hardware logic can be used.

FIG. 3 shows further details of a router 300 according to another embodiment. An integrated router configuration and rules 310 includes a plurality of configuration modules 320, each having integrated rules 322, an identifier and revision number field 324 and the module itself 326. The rules 322 are individualized for the associated configuration module. As shown, any number (N) of configuration modules can be used, and each can include one or more router configuration parameters or settings. A controller 330 can be a CPU, processor, or other hardware logic that is used to intelligently execute the rules and determine whether to load the configuration module based upon the rules. The controller 330 can receive the integrated router configuration and rules 310 from other routers. And the other routers can pass to the controller 330 only a portion of the N configuration modules. Even a single configuration module can be supplied from a router. Thus, the configuration modules and rules 310 can be accumulated together from a plurality of different routers. Alternatively, a master host can supply the router configuration and rules. Network topology information 350 can be separately received and can include information about the router network environment of which the router 300 is a part. The network topology information can include identifiers of other routers in the same area, routers currently joined by a segment (adjacency), border routers summarizing areas connected to, etc. The network topology information can be a link-state database (LSDB) in some protocols, such as the OSPF protocol. As previously described in relation to FIG. 2, in other embodiments the rules can be separated from the configuration modules so as to have two different databases.

FIG. 4 illustrates an environment 400 in which the network of routers can be used. In this example, the environment 400 includes a plurality of data centers including data center 410 coupled together by routers, shown generally at 420. Different levels of routers can be used. For example, core routers 430 can be coupled to other core routers in other data centers within a service provider environment. The routers 430 read address information in a received packet and determine the packet's destination. If the router decides that a different data center contains a host server computer, then the packet is forwarded to that data center. If the packet is addressed to a host in the data center 410, then it is passed to a network address translator (NAT) (not shown) that converts the packet's public IP address to a private IP address. The NAT also translates private addresses to public addresses that are bound outside of the datacenter 410. Additional aggregation routers 440 can be coupled to the NAT to route packets to one or more racks of host server computers 450. Each rack 450 can include a switch 460 coupled to the multiple host server computers. Although one core router 430 and two aggregation routers 440 are shown, in a real data center there can be many more routers and the routers can be grouped into areas as described herein. The core routers 430 and aggregation routers 440 can pass there between configuration modules so as to configure the routers.

FIG. 5 is a diagram depicting am example routing device 510 configured to apply routing updates that include routing information and configuration settings. As depicted at 512, the routing device 510 supports one or more routing protocols that have been extended to support receiving configuration modules and/or rule sets. The routing protocols that are extended can include OSPF, BGP, and/or other routing protocols.

The routing device 510 receives routing updates and handles them according to the network protocol associated with the routing update. For example, an OSPF process 520 can be provided to handle OSPF routing updates, a BGP process 522 can be provided to handle BGP routing updates, and/or other routing protocol processes 524 can be provided to handle routing updates according to other routing protocols. In this example, the routing protocols 512 are extended not only to receive routing table updates but also configuration settings for the routing device 510 itself.

If a routing table update is applied by the routing device 510, the routing update is added to a RIB 530 of the routing device 510. For example, the routing device 510 can first examine the routing update and determine if the routing update will affect any of the routes maintained by the routing device 510. If the routing update will affect one or more routes maintained by the routing device, the routing update can be added to the RIB 530.

Routing updates are stored in the RIB 530 in preparation for putting them into effect by propagating them to the FIB 540. When a routing update is received according to a routing protocol, the routing update can be held in the RIB 530 until it is to be applied, at which time it can be propagated from the RIB 530 to the FIB 540.

In some implementations, the routing device 510 performs routing protocol processing and stores the RIB 530 in software. The routing device 510 then puts routing updates into effect by propagating routing updates from the RIB 530 located in software to the FIB 540 located in hardware, as indicated at 516. Other implementations may use different arrangements (e.g., a RIB and FIB implemented in software).

In some implementations, applying routing updates by the routing device 510 allows for one or more IP prefixes and/or other routing information to be tagged such that the information is not passed from the RIB 530 to the FIB 540 until a specific time threshold has been reached (e.g., according to the synchronous mode or the decay mode). Upper layer routing calculations can be performed as normal, with only the RIB to FIB update process delayed until the update time is reached.

The routing protocols can be further extended to handle receiving configuration modules and rule sets 550 that can be passed to the routing device 510 using the same protocols 512 (with newly extended functionality) used to pass the routing information stored in the RIB 530. The configuration modules and rule sets 550 can be integrated or separated as previously described. Depending on the interpretation of the rules, selected configuration modules that satisfy the rules can be loaded, as shown at 552, from software into hardware settings 560 for the routing device 510. The configuration settings 560 can be stored in memory and used to configure the routing device 510 itself, as opposed to the FIB that describes where to forward packets. The processes, such as the OSPF process 520 can read the configuration modules currently present and apply updates based on the configuration modules.

FIG. 6 is a flowchart of a method for configuring a router. In process block 610, a router boots up using a default image to configure itself. Such a booting process can include performing a power-on self-test and loading a bootstrap program. Next, the operating system can be located and loaded. A startup configuration file can be loaded from NVRAM, a TFTP server or a console. The configuration file includes previously saved configuration parameters and commands, including interface addresses, routing information, passwords and other configuration parameters. In process block 620, the router can find neighbors. Different protocols have different messages for establishing neighbors. For example, OSPF uses a “hello” message to allow a router to discover adjacent routers on its local links and networks. Other messages can be used depending on the protocol. In process block 630, for neighbor routers, configuration modules are exchanged. For exchanging data, the adjacent routers can set up a master/servant relationship. Communicating the configuration modules can also include communicating rules associated with the configuration modules. Several messages may have to be sent by the sending device designated as the master device with the servant device responding with acknowledgements. In process block 640, the configuration modules can be parsed to determine if there is a new configuration module. For example, an identifier and revision number associated with the configuration module can be parsed from the configuration module. That identifier and revision number can be compared to identifiers and revision numbers already stored on the router. If the identifier and revision number are not present, then the configuration module is considered new. Otherwise, for existing configuration modules, the configuration module can be deleted. In process block 650, any configuration modules that are new can be saved to local storage on the router. In process block 660, after the configuration modules are stored, the corresponding rule sets can be used to determine whether to use the configuration modules. If the rules are satisfied, the configuration modules are run. Running the configuration means that the configuration can be running in RAM on the router. The configuration determines how the router operates on the network. In process block 670, after having configured the router, it can continue with its normal operation of processing routing (e.g., forwarding packets) using the routing table.

FIG. 7 is a flowchart according to another embodiment for configuring a router. In process block 710, a first router receives at least configuration modules and rules associated with the configuration modules. The configuration modules can include executable code and/or settings for the router. Receiving the configuration is typically accomplished through messages with neighbor routers. Alternatively, a master host server computer can oversee the routers in a network of routers to ensure that all routers in an area share the same configuration modules and rules. Each configuration module is typically a subpart of the overall configuration of the router and a plurality of the configuration modules are combined to obtain the overall configuration. For example, a configuration module can be a single setting or a combination of settings. In process block 720, a controller is used to interpret the rules for each configuration module to select which configuration modules are to be used with the first router. Selecting a configuration module is accomplished when the rules associated with the configuration module are satisfied. For example, the rules can be based on current settings of the router or other environmental factors (type of router, what other routers it is connected to, etc.). In process block 730, for each selected configuration module, the configuration module is executed on the first router, meaning that any settings are loaded in the first router. For example, the settings can be stored in RAM in a configuration area.

The router network can be divided into areas, as is known in OSPF protocols. The configuration modules can be transmitted to each router in a given area by master/servant transmissions between routers in that area. In this way, all routers in the area can share the same configuration modules and rules. The configuration rules can have time-based information in them, such as when to load the configuration modules. In this way, each router can have synchronized configuration modules loaded so as to self-configure at a predetermined time. In some embodiments, the rules can also have a second time at which the configuration is returned to a previous configuration. Using multiple times allows the router to automatically switch configuration for high-traffic periods and then switch back to a low-traffic mode after the period passes. Another example of how the configuration can be modified includes changing of a hashing algorithm used for routing packets.

FIG. 8 is a flowchart according to another embodiment for configuring a router. In process block 810, neighbor routers in a router network can be identified by passing messages (e.g., hello messages in OSPF) to other routers to establish a relationship. Identifying can also be accomplished in other ways, such as having neighbor routers statically defined, such as is accomplished using BGP. In process block 820, for identified neighbors for which a relationship is established, configuration modules can be received including self-configuration information for configuring the router. In process block 830, the configuration modules can be parsed by dividing the fields of the configuration modules so as to extract an identifier of the configuration module. The identifier can be used to determine whether the configuration module is needed or is already stored on the router. In process block 840, the configuration modules can be saved in storage of the router, such as in RAM, for cases where the configuration module is needed. The router can choose to only save configuration modules that are different than existing configuration modules, which can be accomplished by comparing the identifier of the configuration module with identifiers of existing configuration modules. In process block 850, rules can be applied to the configuration modules to self-configure the router.

FIG. 9 depicts a generalized example of a suitable computing environment 900 in which the described innovations may be implemented. The computing environment 900 is not intended to suggest any limitation as to scope of use or functionality, as the innovations may be implemented in diverse general-purpose or special-purpose computing systems. For example, the computing environment 900 can be any of a variety of computing devices including a router.

With reference to FIG. 9, the computing environment 900 includes one or more processing units 910, 915 and memory 920, 925. In FIG. 9, this basic configuration 930 is included within a dashed line. The processing units 910, 915 execute computer-executable instructions. A processing unit can be a general-purpose central processing unit (CPU), processor in an application-specific integrated circuit (ASIC) or any other type of processor. In a multi-processing system, multiple processing units execute computer-executable instructions to increase processing power. For example, FIG. 9 shows a central processing unit 910 as well as a graphics processing unit or co-processing unit 915. The tangible memory 920, 925 may be volatile memory (e.g., registers, cache, RAM), non-volatile memory (e.g., ROM, EEPROM, flash memory, etc.), or some combination of the two, accessible by the processing unit(s). The memory 920, 925 stores software 980 implementing one or more innovations described herein, in the form of computer-executable instructions suitable for execution by the processing unit(s).

A computing system may have additional features. For example, the computing environment 900 includes storage 940, one or more input devices 950, one or more output devices 960, and one or more communication connections 970. An interconnection mechanism (not shown) such as a bus, controller, or network interconnects the components of the computing environment 900. Typically, operating system software (not shown) provides an operating environment for other software executing in the computing environment 900, and coordinates activities of the components of the computing environment 900.

The tangible storage 940 may be removable or non-removable, and includes magnetic disks, magnetic tapes or cassettes, CD-ROMs, DVDs, or any other medium which can be used to store information in a non-transitory way and which can be accessed within the computing environment 900. The storage 940 stores instructions for the software 980 implementing one or more innovations described herein.

The input device(s) 950 may be a touch input device such as a keyboard, mouse, pen, or trackball, a voice input device, a scanning device, or another device that provides input to the computing environment 900. The output device(s) 960 may be a display, printer, speaker, CD-writer, or another device that provides output from the computing environment 900.

The communication connection(s) 970 enable communication over a communication medium to another computing entity. The communication medium conveys information such as computer-executable instructions, audio or video input or output, or other data in a modulated data signal. A modulated data signal is a signal that has one or more of its characteristics set or changed in such a manner as to encode information in the signal. By way of example, and not limitation, communication media can use an electrical, optical, RF, or other carrier.

Although the operations of some of the disclosed methods are described in a particular, sequential order for convenient presentation, it should be understood that this manner of description encompasses rearrangement, unless a particular ordering is required by specific language set forth below. For example, operations described sequentially may in some cases be rearranged or performed concurrently. Moreover, for the sake of simplicity, the attached figures may not show the various ways in which the disclosed methods can be used in conjunction with other methods.

Any of the disclosed methods can be implemented as computer-executable instructions stored on one or more computer-readable storage media (e.g., one or more optical media discs, volatile memory components (such as DRAM or SRAM), or non-volatile memory components (such as flash memory or hard drives)) and executed on a computer (e.g., any commercially available computer, including smart phones or other mobile devices that include computing hardware). The term computer-readable storage media does not include communication connections, such as signals and carrier waves. Any of the computer-executable instructions for implementing the disclosed techniques as well as any data created and used during implementation of the disclosed embodiments can be stored on one or more computer-readable storage media. The computer-executable instructions can be part of, for example, a dedicated software application or a software application that is accessed or downloaded via a web browser or other software application (such as a remote computing application). Such software can be executed, for example, on a single local computer (e.g., any suitable commercially available computer) or in a network environment (e.g., via the Internet, a wide-area network, a local-area network, a client-server network (such as a cloud computing network), or other such network) using one or more network computers.

For clarity, only certain selected aspects of the software-based implementations are described. Other details that are well known in the art are omitted. For example, it should be understood that the disclosed technology is not limited to any specific computer language or program. For instance, the disclosed technology can be implemented by software written in C++, Java, Perl, JavaScript, Adobe Flash, or any other suitable programming language. Likewise, the disclosed technology is not limited to any particular computer or type of hardware. Certain details of suitable computers and hardware are well known and need not be set forth in detail in this disclosure.

It should also be well understood that any functionality described herein can be performed, at least in part, by one or more hardware logic components, instead of software. For example, and without limitation, illustrative types of hardware logic components that can be used include Field-programmable Gate Arrays (FPGAs), Program-specific Integrated Circuits (ASICs), Program-specific Standard Products (ASSPs), System-on-a-chip systems (SOCs), Complex Programmable Logic Devices (CPLDs), etc.

Furthermore, any of the software-based embodiments (comprising, for example, computer-executable instructions for causing a computer to perform any of the disclosed methods) can be uploaded, downloaded, or remotely accessed through a suitable communication means. Such suitable communication means include, for example, the Internet, the World Wide Web, an intranet, software applications, cable (including fiber optic cable), magnetic communications, electromagnetic communications (including RF, microwave, and infrared communications), electronic communications, or other such communication means.

The disclosed methods, apparatus, and systems should not be construed as limiting in any way. Instead, the present disclosure is directed toward all novel and nonobvious features and aspects of the various disclosed embodiments, alone and in various combinations and subcombinations with one another. The disclosed methods, apparatus, and systems are not limited to any specific aspect or feature or combination thereof, nor do the disclosed embodiments require that any one or more specific advantages be present or problems be solved.

In view of the many possible embodiments to which the principles of the disclosed invention may be applied, it should be recognized that the illustrated embodiments are only examples of the invention and should not be taken as limiting the scope of the invention. Rather, the scope of the invention is defined by the following claims. We therefore claim as our invention all that comes within the scope of these claims. 

What is claimed is:
 1. A method of configuring a router, the method comprising: identifying, by a first router, neighbor routers in a router network by passing messages on the router network asking to establish a relationship with the neighbor routers; receiving, from the identified neighbor routers and using the first router, configuration modules and associated rules including self-configuration information for configuring the first router, wherein the configuration modules are executable files; parsing, by the first router, the configuration modules to determine which configuration modules are needed by the first router, wherein each configuration module is a subpart of an overall router configuration; saving the needed configuration modules in storage on the first router; and using the first router, applying the rules to the configuration modules to determine whether to install the configuration modules into the first router in order to self-configure the first router for use in forwarding messages through the router network, wherein the rules include an analysis of an environment of the first router including analyzing parameters associated with adjacent routers to the first router.
 2. The method of claim 1, wherein the configuration modules are independent of routing topology information for the router network.
 3. The method of claim 1, further including establishing a master/servant relationship between the first router and a neighbor router for receiving the configuration modules.
 4. The method of claim 1, wherein the associated rules are embedded within the configuration modules.
 5. The method of claim 1, wherein the associated rules direct whether to use the configuration modules on the first router if characteristics of the first router are met.
 6. A computer-readable storage medium, which is non-transitory, including instructions that upon execution cause a computer system to: receive, at a first router in a network of routers, at least configuration modules and rules associated with the configuration modules, wherein the rules are stored on the first router; use a controller within the first router to interpret the rules and select which of the configuration modules are to be used with the first router, wherein the configuration modules are subparts of an overall configuration of the first router and wherein at least one configuration module is associated with interface settings of the first router; and for each selected configuration module, execute the selected configuration module on the first router when the rules are satisfied to install the configuration module on the first router.
 7. The computer-readable storage medium according to claim 6, wherein the instructions, upon execution, further cause the computer system to: from the first router, establish communications with at least a second router on the network of routers; wherein the receiving of at least the configuration modules and rules includes receiving the configuration modules and rules from the second router through an interface on the first router.
 8. The computer-readable storage medium according to claim 6, wherein the instructions, upon execution, further cause the computer system to: divide the network of routers into a plurality of areas; and transmit the configuration modules and rules to each router in a first area of the plurality of areas so that all routers in the first area have the same configuration modules and rules.
 9. The computer-readable storage medium according to claim 8, wherein the first router is in the first area, and wherein the instructions, upon execution, further cause the computer system to: establish communications between the first router and other routers within the first area, wherein the receiving at least the configuration modules and rules includes receiving the configuration modules and rules at the first router from one of the other routers in the first area; parse the configuration modules to identify the configuration modules; compare the identified configuration modules to other configuration modules stored on the first router; and store, on the first router, the identified configuration modules that are not already stored on the first router.
 10. The computer-readable storage medium according to claim 8, wherein a particular rule of the rules has an associated a time parameter, and wherein the routers within the first area are configured to execute one of the configuration modules corresponding to the particular rule at a time associated with the time parameter.
 11. The computer-readable storage medium according to claim 6, wherein the configuration modules are executable code that are independent of routing tables.
 12. The computer-readable storage medium according to claim 6, wherein the executing of the selected configuration module includes executing the selected configuration module at a first predetermined time and then returning the first router to a prior configuration at a second predetermined time.
 13. The computer-readable storage medium according to claim 6, wherein executing the selected configuration module changes a hashing algorithm used for routing packets through the first router.
 14. The computer-readable storage medium according to claim 6, wherein each configuration module includes a respective identifier and a respective revision number to uniquely identify the configuration module.
 15. The computer-readable storage according to claim 6, wherein the configuration modules and rules are received from a master host server computer that oversees the routers in the network of routers.
 16. A system, comprising: a first router in a router network, the first router including a controller and at least one interface; and a second router in the router network, coupled to the first router; the controller on the first router being adapted to receive configuration rules and configuration modules from the second router, the configuration modules comprising instructions to configure the first router in accordance with the configuration rules, wherein the configuration rules are associated with a current state of the first router and are used to install the configuration modules and wherein the configuration modules are subparts of an overall configuration of the first router, wherein at least one configuration module is associated with interface settings of the first router.
 17. The system of claim 16, wherein the configuration rules define whether to execute the configuration modules based on environmental parameters associated with the first router.
 18. The system of claim 16, wherein the configuration modules are independent of routing tables stored in the first router.
 19. The system of claim 16, wherein the first and second routers are within a data center of a service provider.
 20. The system of claim 16, wherein all routers in the router network share the configuration rules and configuration modules.
 21. The system of claim 16, wherein the controller comprises a controller card and the at least one interface comprises at least one interface card. 